package com.ccys.db.mapper;

import com.ccys.db.dto.userManagement.DoctorDto;
import com.ccys.db.dto.userManagement.TblFlagMemberDTO;
import com.ccys.db.entity.TblFlagMember;
import com.ccys.db.vo.doctor.flag.FlagPatientMakeVo;
import com.ccys.db.vo.userManagement.DoctorInfoFlagPatientVo;
import com.ccys.db.vo.userManagement.TblFlagMemberWebVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * Created by Mybatis Generator on 2023/12/08
 */
public interface TblFlagMemberMapper extends Mapper<TblFlagMember>, MySqlMapper<TblFlagMember> {

    List<TblFlagMemberWebVO> listObjectsCms(TblFlagMemberDTO dto);

    List<DoctorInfoFlagPatientVo> findDoctorInfoFlagPatient(DoctorDto dto);

    List<FlagPatientMakeVo> getPageFlagPatient(@Param("type") String type,@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("memberId") String memberId, @Param("keyword") String keyword);

    TblFlagMember selectLastOneByMember(@Param("memberId")String memberId);

    String findFlagReasonIdByMemberIdAndByBookingId(@Param("memberId") String memberId,@Param("bookingId") String bookingId);
}